package com.boang.controller;

import com.boang.controller.feign.ProService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
  @author: 13813
  @date: 2024/8/27 16:53
*/
@RestController
public class CoController {

    @Autowired
    private ProService proService;

    @RequestMapping("/co")
    public String co() {
        return proService.test();
    }

    @RequestMapping("/co/{mn}")
    public String co(@PathVariable("mn") String name) {
        return proService.test(name);
    }
}
